package code;

public class QuestionNum_07_3 {
    public static void main(String[] args) {
        calSum();
    }

    public static void calSum(){
        int sum = 0;
        for (int i=15;i<=1005;i++){
            int bit = i % 10;
            if (bit == 5){
                sum += i;
                System.out.println(i);
            }
        }
        System.out.println("sum="+sum);
    }
}
